package dbutilsDemo.util;

import dbutilsDemo.services.BroadbandOnlineBO;
import dbutilsDemo.services.BroadbandUserBO;

public class SpringContainer {
	private static BroadbandUserBO userBO;
	private static BroadbandOnlineBO onlineBO;

	public static BroadbandOnlineBO getOnlineBO() {
		onlineBO = (BroadbandOnlineBO) Context.ctx.getBean("onlineBO");
		return onlineBO;
	}

	public static void setOnlineBO(BroadbandOnlineBO onlineBO) {
		SpringContainer.onlineBO = onlineBO;
	}

	public static BroadbandUserBO getUserBO() {
		userBO = (BroadbandUserBO) Context.ctx.getBean("userBO");
		return userBO;
	}

	public static void setUserBO(BroadbandUserBO userBO) {
		SpringContainer.userBO = userBO;
	}
}
